<?php
preg_match_all("/tudou\.com\/(.*)\//Uisx",$this->url,$nn);

switch($nn[1][0]){
    case "albumplay":
    $a="a";break;
    case "programs":
    case "listplay":
    $a="v";break;
    default:
    $a="l";                    
}
preg_match_all("/(?:l|i|a|v)id\s*=\s*([0-9]*)/isx",$this->nr,$nn);$lid=$nn[1][0];
preg_match_all("/\,(?:l|i|a|v)code\s*=\s*'([^']*)'/Uisx",$this->nr,$nn);$lcode=$nn[1][0];
preg_match_all("/\,adesc\:\"([^<>]*)\"/Uisx",$this->nr,$nn);$jj=$this->jj=clmh($nn[1][0]);
preg_match_all("/\,pic\:\"([^<>]*)\"/Uisx",$this->nr,$nn);$pic=$this->pic=clmh($nn[1][0]);
if($pic!="") $picimg="<img src=\"{$pic}\">";
if($lid!="") $textarea="[flash]http://www.tudou.com/{$a}/{$lcode}/&resourceId=0_05_05_99&iid={$lid}&bid=05/v.swf[/flash]";
if($iid!="") $textarea="[flash]http://www.tudou.com/{$a}/{$icode}/&resourceId=0_05_05_99&iid={$iid}&bid=05/v.swf[/flash]";
$textarea=clmh($textarea);
?>